package com.hrs.enity.ro;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author 摆渡人
 * @description
 * @date 2022/12/6 10:15
 */
@Data
public class LoginFormRo {

    @ApiModelProperty(value = "手机号",notes = "手机号",required = true)
    @NotBlank(message = "请输入手机号")
    private String account;

    @ApiModelProperty(value = "图片验证码uuid",required = true)
    @NotBlank(message = "vCodeUuid is null")
    @JsonProperty("vCodeUuid")
    private String vCodeUuid;

    @ApiModelProperty(value = "密码，默认123456",required = true)
    private String password;

    @ApiModelProperty(value = "图片验证码")
    @NotBlank(message = "请输入图片验证码")
    @JsonProperty("vCode")
    private String vCode;

    @ApiModelProperty(value = "手机验证码",notes = "密码为空时会校验")
    @JsonProperty("pCode")
    private String pCode;
}
